package com.zhongge.model.entity;

import java.util.Date;

/**
 * @ClassName User
 * @Description TODO 用户实体
 * @Author zhongge
 * @Version 1.0
 */
public class User {
    private Integer id;//用户id
    private String username;//用户名
    private String password;//密码
    private String nickname;//昵称
    private String email;//电子邮件
    private String avatar;//头像
    private Date createdTime;//创建时间
    private Date updatedTime;//更新时间

    // 构造方法
    public User() {}

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
